﻿/* ######################################## *\
 * ### Copyright (C) 2009 AJ Ravindiran ### *
\* ######################################## */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AJRavindiran.Jolt.RuneScape.Models.Characters.Information
{
    /// <summary>
    /// Represents a characters 'account' details.
    /// <para>Details stored in this player is unique to the player only.</para>
    /// </summary>
    public class Details
    {
        #region Properties
        /// <summary>
        /// Gets or sets the character's connection id.
        /// </summary>
        public int ConnectionId { get; set; }
        /// <summary>
        /// Gets or sets the character's database id.
        /// </summary>
        public int DatabaseId { get; set; }
        /// <summary>
        /// Gets or sets the character's server session key.
        /// </summary>
        public long ServerSessionKey { get; set; }
        /// <summary>
        /// Gets or sets the character's client session key.
        /// </summary>
        public long ClientSessionKey { get; set; }
        /// <summary>
        /// Gets or sets the character's ip address.
        /// </summary>
        public string IPAddress { get; set; }
        /// <summary>
        /// Gets or sets the character's username.
        /// </summary>
        public string Username { get; set; }
        /// <summary>
        /// Gets or sets the character's password.
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// Gets or sets the character's rights.
        /// </summary>
        public CharacterRights Rights { get; set; }
        #endregion Properties

        #region Constructor
        /// <summary>
        /// Constructs a new details class for a character.
        /// </summary>
        /// <param name="connectionID">The connection id of this player.</param>
        /// <param name="databaseId">The database if of this character.</param>
        /// <param name="ipAddress">The ip address of this player.</param>
        public Details(int connectionID, string ipAddress)
        {
            this.ConnectionId = connectionID;
            this.IPAddress = ipAddress;
        }
        #endregion Constructor
    }
}
